import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    component:()=>import('@/views/login/login.vue'),
    hidden:true,
    name:'login',
    meta: {
      showTabBar: false, // 设置不显示TabBar
    },
  },
  {
    path:'/user/profile',
    component:()=>import('@/views/user/profile.vue'),
    name:'userProfile',
  },
  {
    path:'/user/activity',
    component:()=>import('@/views/user/activity.vue'),
    name:'userActivity',
  },
  {
    path:'/organizer/profile',
    component:()=>import('@/views/organizer/profile.vue'),
    name:'organizerProfile',
  },
  {
    path:'/organizer/activity',
    component:()=>import('@/views/organizer/activity.vue'),
    name:'organizerActivity',
  },
  {
    path:'/user/edit',
    component:()=>import('@/views/user/edit.vue'),
    name:'userEdit',
  },
  {
    path:'/organizer/edit',
    component:()=>import('@/views/organizer/edit.vue'),
    name:'organizerEdit',
  },
  {
    path:"/user/message",
    component:()=>import('@/views/user/message.vue'),
    name:'userMessage',
  },
  {
    path:"/find-events",
    component:()=>import('@/views/user/findEvents.vue'),
    name:'userFindEvents',
  },
  {
    path:"/find-organizers",
    component:()=>import('@/views/user/findOrganizers.vue'),
    name:'userFindOrganizers',
  },
  {
    path:"/userDetail",
    component:()=>import('@/views/detail/userDetail.vue'),
    name:'userDetail',
  },
  {
    path:"/eventDetail",
    component:()=>import('@/views/detail/eventDetail.vue'),
    name:'eventDetail',
  },
  {
    path:"/organizerDetail",
    component:()=>import('@/views/detail/organizerDetail.vue'),
    name:'organizerDetail',
  },
  {
    path:"/userScore",
    component:()=>import('@/views/user/score.vue'),
    name:'userScore',
  },
  {
    path:"/pushEvents",
    component:()=>import('@/views/organizer/pushEvents.vue'),
    name:'pushEvents',
  },
  {
    path:"/review",
    component:()=>import('@/views/organizer/review.vue'),
    name:'review',
  },
  {
    path:"/feedback",
    component:()=>import('@/views/organizer/feedback.vue'),
    name:'feedback',
  },
  {
    path:"/my-activities",
    component:()=>import('@/views/user/myActivities.vue'),
    name:'myActivities',
  },
  {
    path:"/about-us",
    component:()=>import('@/views/user/aboutUs.vue'),
    name:'aboutUs',
  },
]

const router = new VueRouter({
  routes
})

export default router
